home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / plain / contrib / wrtfdist.readme < prev    next >
Encoding:
Internet Message Format  |  1992-10-25  |  1.9 KB

  1. From: cameron@symcom.math.uiuc.edu (Cameron Smith)
  2. Newsgroups: comp.text.tex
  3. Date: 25 Oct 92 04:24:17 GMT
  4. Organization: none
  5.  
  6. Everything below the "cut here" line is "wrtfdist.tex",
  7. the distribution file for "wrtfile.tex".  This is a short
  8. TeX file containing code that allows you to put (for example)
  9.  
  10.    \FILE abc.def
  11.    Mary had a little lamb,
  12.    its fleece was white as snow.
  13.    \EOF
  14.  
  15. into a TeX file and have the lines "Mary...lamb," and "its...snow."
  16. written out to a file "abc.def" when the original file is TeXed.
  17. This functionality is identical with that of Jonathan Fine's
  18. "filechop.tex", which was posted to the UKTeX Digest recently
  19. (Volume 92, Issue 37, Friday, 9 Oct 1992).  Fine's code is simpler
  20. than mine and executes faster, but its definition of \FILE uses
  21. \EOF as a delimiter to gather up the entire text to be written out
  22. as a parameter.  This places potentially severe limitations on the
  23. amount of text that can be written.  My implementation uses a loop
  24. to write one line at a time until \EOF is seen, so there is no limit
  25. on the size of files that can be created.
  26.  
  27. My version also allows you to say "\TYPE" instead of "\FILE <name>",
  28. to have lines written to the terminal and log file instead of to another
  29. file.  This is useful for presenting prompts or informatinal messages
  30. in interactive TeX programs.
  31.  
  32. The file "wrtfdist.tex" itself uses the "wrtfile" code to create "read.me",
  33. "wrtfile.doc", and "wrtfile.tex" when TeXed.  Try it out and read the
  34. "read.me" file for more information.
  35.  
  36. Finally, everyone should feel free to redistribute "wrtfdist.tex",
  37. and to use the code in "wrtfile.tex" to create "package files" like
  38. this one, but archivists please note the redistribtion restrictions:
  39. don't break apart the files and store them separately, put *only*
  40. the package file "wrtfdist.tex" into your archives.  Thank you.
  41.  
  42. Hope this is of use--
  43. --Cameron Smith
  44.   cameron@symcom.math.uiuc.edu
  45.  
  46.